<?php 
include("safeout.php");
$sqls="select * from ph_tdk where 1=1";
$result=mysql_query($sqls);
$row=mysql_fetch_array($result);
$htmlData = $row["faqs"];
$htmlData2 = $row["contact"];
?> 
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1,maximum-scale=1, user-scalable=no">
<title>APP推广系统-TDK修改</title>
<link href="bootstrap/css/bootstrap.min.css" title="" rel="stylesheet" />
<link href="css/mcommon.css" rel="stylesheet" title="" type="text/css" />
<link href="css/style.css" rel="stylesheet" type="text/css"  />
<link rel="shortcut icon" href="/logo.ico" />
<link rel="stylesheet" href="./edit/themes/default/default.css" />
  <link rel="stylesheet" href="./edit/plugins/code/prettify.css" />
  <script charset="utf-8" src="./edit/kindeditor.js"></script>
  <script charset="utf-8" src="./edit/lang/zh_CN.js"></script>
  <script charset="utf-8" src="./edit/plugins/code/prettify.js"></script>
  <script>
    KindEditor.ready(function(K) {
      var editor1 = K.create('textarea[name="faqs"]', {
        cssPath : './edit/plugins/code/prettify.css',
        uploadJson : './edit/php/upload_json.php',
        fileManagerJson : './edit/php/file_manager_json.php',
        allowFileManager : true,
        afterBlur: function(){this.sync();}
      });
      var editor2 = K.create('textarea[name="Contact"]', {
        cssPath : './edit/plugins/code/prettify.css',
        uploadJson : './edit/php/upload_json.php',
        fileManagerJson : './edit/php/file_manager_json.php',
        allowFileManager : true,
        afterBlur: function(){this.sync();}
      });
      prettyPrint();
    });
  </script>
</head>

<body>
<!--顶部-->
<?php include("top.php");?> 
<!--顶部结束--->
<!--主体部分-->
<div class="down-main">
	<!--左侧部分-->
  <?php include("left.php");?> 
  <!--左侧部分结束-->
  <!--右侧部分-->
  <div class="right-product right-full">
  	<!--右侧内容部分-->
    <div class="container-fluid right-product-con">
    	<div class="mianbaoxie"><i class="glyphicon-folder-open glyphicon"></i>
    		<span>管理中心</span>&gt;<span class="dangqian">TDK修改</span></div>
      <div class="container-con">
      		<!--表格-->
      		<div class="tableCon">
			<div class="tableCon-tit clear">TDK修改</div>
	      		<div class="tableCon-content">
				<table width="98%" border="0" cellpadding="5" cellspacing="1" bgcolor="#CCCCCC" class="wenzi">
  <form id="form1" name="form1" method="post" action="tdk_edit.php">
    <tr>
      <td width="16%" bgcolor="#F7F7F7"><div align="right"><font color="#333333">网站名称</font>： </div></td>
      <td width="84%" height="25" bgcolor="#F7F7F7"><div align="left">
        <input name="sitename" type="text" id="sitename" class="form-control" value="<?php echo $row["sitename"];?>" />
      </div></td>
    </tr>
    <tr>
      <td width="16%" bgcolor="#F7F7F7"><div align="right"><font color="#333333">字体样式链接</font>： </div></td>
      <td width="84%" height="25" bgcolor="#F7F7F7"><div align="left">
        <input name="fontlink" type="text" id="fontlink" class="form-control" value="<?php echo $row["fontlink"];?>" />
      </div></td>
    </tr>
    <tr>
      <td bgcolor="#F7F7F7"><div align="right"><font color="#333333">首页-Title</font>：</div></td>
      <td height="25" bgcolor="#F7F7F7"><div align="left">
        <input name="Title" type="text" id="Title"  class="form-control" value="<?php echo $row["Title"];?>" />
      </div></td>
    </tr>
    <tr>
      <td bgcolor="#F7F7F7"><div align="right"><font color="#333333">首页-Keywords</font>：</div></td>
      <td height="25" bgcolor="#F7F7F7"><div align="left">
        <input name="Keywords" type="text" id="Keywords"  class="form-control" value="<?php echo $row["Keywords"];?>" />
      </div></td>
    </tr>
    <tr>
      <td bgcolor="#F7F7F7"><div align="right"><font color="#333333">首页-Des</font>：</div></td>
      <td height="25" bgcolor="#F7F7F7"><div align="left">
        <input name="Des" type="text" id="Des"  class="form-control" value="<?php echo $row["Des"];?>" />
      </div></td>
    </tr>

    <tr>
      <td bgcolor="#F7F7F7"><div align="right"><font color="#333333">About-Title</font>：</div></td>
      <td height="25" bgcolor="#F7F7F7"><div align="left">
        <input name="About_Title" type="text" id="About_Title"  class="form-control" value="<?php echo $row["About_Title"];?>" />
      </div></td>
    </tr>
    <tr>
      <td bgcolor="#F7F7F7"><div align="right"><font color="#333333">About-Keywords</font>：</div></td>
      <td height="25" bgcolor="#F7F7F7"><div align="left">
        <input name="About_Keywords" type="text" id="About_Keywords"  class="form-control"  value="<?php echo $row["About_Keywords"];?>" />
      </div></td>
    </tr>
    <tr>
      <td bgcolor="#F7F7F7"><div align="right"><font color="#333333">About-Des</font>：</div></td>
      <td height="25" bgcolor="#F7F7F7"><div align="left">
        <input name="About_Des" type="text" id="About_Des"  class="form-control" value="<?php echo $row["About_Des"];?>" />
      </div></td>
    </tr>

    <tr>
      <td bgcolor="#F7F7F7"><div align="right"><font color="#333333">Services-Title</font>：</div></td>
      <td height="25" bgcolor="#F7F7F7"><div align="left">
        <input name="Services_Title" type="text" id="Services_Title"  class="form-control" value="<?php echo $row["Services_Title"];?>" />
      </div></td>
    </tr>
    <tr>
      <td bgcolor="#F7F7F7"><div align="right"><font color="#333333">Services-Keywords</font>：</div></td>
      <td height="25" bgcolor="#F7F7F7"><div align="left">
        <input name="Services_Keywords" type="text" id="Services_Keywords"  class="form-control" value="<?php echo $row["Services_Keywords"];?>" />
      </div></td>
    </tr>
    <tr>
      <td bgcolor="#F7F7F7"><div align="right"><font color="#333333">Services-Des</font>：</div></td>
      <td height="25" bgcolor="#F7F7F7"><div align="left">
        <input name="Services_Des" type="text" id="Services_Des"  class="form-control" value="<?php echo $row["Services_Des"];?>" />
      </div></td>
    </tr>

    <tr>
      <td bgcolor="#F7F7F7"><div align="right"><font color="#333333">Pricing-Title</font>：</div></td>
      <td height="25" bgcolor="#F7F7F7"><div align="left">
        <input name="Pricing_Title" type="text" id="Pricing_Title"  class="form-control" value="<?php echo $row["Pricing_Title"];?>" />
      </div></td>
    </tr>
    <tr>
      <td bgcolor="#F7F7F7"><div align="right"><font color="#333333">Pricing-Keywords</font>：</div></td>
      <td height="25" bgcolor="#F7F7F7"><div align="left">
        <input name="Pricing_Keywords" type="text" id="Pricing_Keywords"  class="form-control" value="<?php echo $row["Pricing_Keywords"];?>" />
      </div></td>
    </tr>
    <tr>
      <td bgcolor="#F7F7F7"><div align="right"><font color="#333333">Pricing-Des</font>：</div></td>
      <td height="25" bgcolor="#F7F7F7"><div align="left">
        <input name="Pricing_Des" type="text" id="Pricing_Des"  class="form-control" value="<?php echo $row["Pricing_Des"];?>" />
      </div></td>
    </tr>
    <tr>
      <td bgcolor="#F7F7F7"><div align="right"><font color="#333333">FAQs</font>：</div></td>
      <td height="25" bgcolor="#F7F7F7"><div align="left">
        <textarea id="faqs" name="faqs" cols="100" rows="8" style="width:100%;height:200px;visibility:hidden;"><?php echo htmlspecialchars($htmlData);?></textarea>
      </div></td>
    </tr>
    <tr>
      <td bgcolor="#F7F7F7"><div align="right"><font color="#333333">Contact</font>：</div></td>
      <td height="25" bgcolor="#F7F7F7"><div align="left">
        <textarea id="Contact" name="Contact" cols="100" rows="8" style="width:100%;height:200px;visibility:hidden;"><?php echo htmlspecialchars($htmlData2);?></textarea>
      </div></td>
    </tr>

    
    <tr>
      <td bgcolor="#F7F7F7"><div align="right"></div></td>
      <td height="25" bgcolor="#F7F7F7"><div align="left">
        <input type="submit" class="btn btn-success" value="确定保存"/>
      </div></td>
    </tr>
  </form>
</table>
	      		</div>
	      	</div>
	      	<!--表格结束--->
      	</div>
      </div>
  </div>
	  <!--右侧内容部分结束-->
  </div>
  <!--右侧部分结束-->
</div>
<!--主体部分结束-->
<script src="js/jquery-1.11.1.min.js" type="text/javascript"></script>
<script src="bootstrap/js/bootstrap.min.js" type="text/javascript"></script>
<script src="js/mcommon.js"></script>
</body>
</html>
